package com.linwen.javase.desgin_pattern.structure.bridge;

/**
 * @ClassName BridgeTest
 * @Description
 * @Author lin
 * @Date 2022/6/19 下午11:50
 * @Version V1.0
 */
public class BridgeTest {
    public static void main(String[] args) {
        //白色
        Color white = new White();
        //正方形
        Shape square = new Square();
        //白色的正方形
        square.setColor(white);
        square.draw();

        //长方形
        Shape rectange = new Rectangle();
        rectange.setColor(white);
        rectange.draw();
    }
}
